FROM openjdk:8-jdk
WORKDIR /opt/device-manager

COPY app.jar device-manager.jar
RUN mkdir config
ENV JAVA_TOOL_OPTIONS -Dfile.encoding=UTF8 -Duser.language=zh -Duser.region=zh_CN -Duser.country=zh_CN
ENTRYPOINT exec java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap $JAVA_OPTS $SKYWALKING_OPTS $CATALINA_OPTS -jar ./device-manager.jar --spring.profiles.active=prod

